﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace PHMEE
{
    /// <summary>
    /// 传感器实体
    /// </summary>
    public class Sensor : Entity<Guid>
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTIme { get; set; }
        /// <summary>
        /// 数采器的编码
        /// </summary>
        public string CollectCode { get; set; }
        /// <summary>
        /// ⾃检项⽬类型（1-系统；2-偏执电压；3-转速通道；4-⾳频通道）
        /// </summary>
        public int CheckType { get; set; }
        /// <summary>
        /// 数采器通道id
        /// </summary>
        public int ChnoId { get; set; }
        /// <summary>
        /// 偏执电压值
        /// </summary>
        public float CheckValue { get; set; }
        /// <summary>
        /// 状态（0-异常；1-正常）
        /// </summary>
        public int State { get; set; }

        public Sensor(Guid id)
        {
            Id = id;
        }
    }
}
